package com.project.service;

import com.project.dao.IUserDao;
import com.project.dao.impl.IUserDaoImpl;
import com.project.server.Request;
import com.project.server.Response;

public class UpDateService implements Servlet{
    private IUserDao dao = new IUserDaoImpl();

    public void service (Request rs, Response resp){
       int id = Integer.parseInt(rs.getParamMap("id"));
       String pw = rs.getParamMap("pwd");
       dao.update(id,pw);

       FindAllService Find = new FindAllService();
       Find.service(rs,resp);
    }
}
